Can`t draw in CAlayer.

Posted by Ann on Stack Overflow See other posts from Stack Overflow or by Ann
Published on 2010-04-03T11:00:39Z Indexed on 2010/04/03 11:03 UTC
Read the original article Hit count: 263

Filed under:

HI All.

I have subclass of UIScrollView. IN this class I have added some imageView.layer to self.layer. And when I call [imageView.layer setNeedsDisplay] my implemented delegate never called.

-(void)drawLayer:(CALayer*)layer :(CGContextRef)context

I`ve also set

imageView.layer.delegate = self

Could anyone tell me where I must set delegate function to make this to work.

Thank you for advance.

© Stack Overflow or respective owner

Related posts about objective-c